package com.hbnu.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hbnu.system.model.entity.ProjectSourse;

import java.util.List;

public interface ProjectSourseService extends IService<ProjectSourse> {
    /**
     * 新增项目来源
     *
     * @param projectSourse
     * @return 是否成功
     */
    boolean addProjectSourse(ProjectSourse projectSourse);

    /**
     * 返回所有项目来源的名称列表
     */
    List<ProjectSourse> getProjectSourseList();

    /**
     * 项目来源修改
     */
    boolean updateProjectSourse(ProjectSourse projectSourse);

    /**
     * 项目来源删除
     */
    boolean deleteProjectSourse(String ID);

    /**
     * 根据名字查询
     * @param projectSourseName
     * @return
     */
    List<ProjectSourse> getByProjectSourseName(String projectSourseName);
}
